package com.wwl.springcloud.service;

import com.wwl.springcloud.dto.CommonResult;
import com.wwl.springcloud.dto.Payment;
import org.springframework.stereotype.Component;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/8/19 19:48
 * @description:
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public CommonResult<Payment> paymentSQL(Integer id)
    {
        return new CommonResult<>(44444,"服务降级返回,---PaymentFallbackService",new Payment(id,"errorSerial"));
    }

}
